#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[] = { 0,0,1,1,1,2,2,3,3,4,4,5,5,5 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int* p = arr;
	for (int i = 1; i < sz; i++)
	{
		if (*p != arr[i])
		{
			*++p = arr[i];
		}
	}
	return 0;
}

